-- GENERATED SPELL FOR [Nerubian Overseer] --


function spell0_16184(pUnit, Event) --@Crypt Scarabs,n/a--
pUnit:FullCastSpellOnTarget(31601,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16184', 1500, 1)
end

function spell1_16184(pUnit, Event) --@Enveloping Web,n/a--
pUnit:FullCastSpellOnTarget(15471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16184', 8312, 1)
end

function Sorts_16184(pUnit, Event)
local choix_sorts_16184 = math.random(0, 1)
if choix_sorts_16184 == 0 then
pUnit:RegisterEvent('spell0_16184', 1, 1)
end
if choix_sorts_16184 == 1 then
pUnit:RegisterEvent('spell1_16184', 1, 1)
end
end

function mob16184_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16184', math.random(1500, 3000), 1)
end

function mob16184_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16184_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16184_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16184, 1, 'mob16184_Action')
RegisterUnitEvent(16184, 2, 'mob16184_Leave')
RegisterUnitEvent(16184, 3, 'mob16184_Kill')
RegisterUnitEvent(16184, 4, 'mob16184_Die')
